import {getResources,getAddResources} from '@/api/resources'
export default {
    namespaced: true, // 封闭
    state: {},
    mutations: {},
    getters: {},
    actions: {
        // 获取 资源列表
    async getResources(context, payload) {
        try {
          const { data } = await getResources(payload)
          return data
        } catch (err) {
          console.log(err)
        }
      },
           // 创建 资源
    async getAddResources(context, payload) {
        try {
          const { data } = await getAddResources(payload)
          return data
        } catch (err) {
          console.log(err)
        }
      },
    }
}